import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
// import Main from '@/views/Main.vue'

const routes = [
  {
    path: '/',
    component: Home,
    children: [
      // {
      //   path: '',
      //   name: 'Main',
      //   component: Main
      // },
      {
        path: 'dashboard',
        name: 'Dashboard',
        component: () => import(/* webpackChunkName: "dashboard" */ '@/views/Dashboard.vue')
      }
    ]
  }
  // {
  //   path: '/login',
  //   name: 'Login',
  //   component: Login
  // }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
